package _Pan3D.program.shaders
{
	import _Pan3D.program.Shader3D;
	
	public class DiffuseShader extends Shader3D
	{
		public static var DIFFUSESHADER:String = "diffuseshader";
		public function DiffuseShader()
		{
			vertex = 
				"mul vt0, va0.xyz, vc12.x \n" + 
				"mov vt0.w, va0.w\n" + 
				"m44 vt0, vt0, vc4 \n" +
				"m44 op, vt0, vc0 \n" + 
				"mov v2, vc12 \n" + 
				"mov v1,va1"
			fragment =
				"tex ft1, v1, fs0 <2d,clamp,repeat>\n"+
				//"add ft1.a,ft1.a,fc0.x\n" + 
				//"kil ft1.x\n" + //删除透明点
				"mul ft1.a,ft1.a,v2.y\n" + 
				"mov oc, ft1";
		}
	}
}